package cn.tedu.di;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestDI {
    @Test
    public void show(){
        ClassPathXmlApplicationContext spring = new ClassPathXmlApplicationContext("spring-conful.xml");
        Object o = spring.getBean("student");
        Student s = (Student) o;
        System.out.println(s);
    }
}
